package org.jeecg.glr.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;

import javax.persistence.Transient;

/**
 * @Description: 音柱定时任务
 * @Author: jeecg-boot
 * @Date:   2020-02-13
 * @Version: V1.0
 */
@Data
@TableName("glr_radio_task")
public class GlrRadioTask implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
    private String id;
	/**任务名称*/
	@Excel(name = "任务名称", width = 15)
    private String name;
	/**开始时间*/
	@Excel(name = "开始时间", width = 15)
    private String startTime;
	/**结束时间*/
	@Excel(name = "结束时间", width = 15)
    private String endTime;
	/**播放时间*/
	@Excel(name = "播放时间", width = 15)
    private String division;
	/**音量*/
	@Excel(name = "音量", width = 15)
    private Integer playVol;
	/**运行状态
	 * 启用		0
	 * 停用		1
	 **/
	@Excel(name = "启用状态", width = 15)
    @Dict(dicCode = "glr_radio_task_status")
    private String status;
	/**启用状态
	 * 运行中	3
	 * 未运行	4
	 */
	@Excel(name = "运行状态", width = 15)
    @Dict(dicCode = "glr_radio_task_status")
	private String startStatus;
	/**定时任务ID*/
	@Excel(name = "定时任务ID", width = 15)
    private String taskId;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    private String createBy;
	/**播放时长*/
	@Excel(name = "播放时长", width = 15)
    private Integer playTime;
	/**创建日期*/
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    private String sysOrgCode;
	/**所属公司*/
	@Excel(name = "所属公司", width = 15)
    private String sysCompanyCode;
    @Dict(dicCode = "glr_yzgs")
	private String companyCode;

	@TableField(exist = false)
	private String ids;

	@Transient
	private transient GlrRadioServer glrRadioServer; //所属雷拓服务

    @Transient
    private transient Boolean statuSwitch0; //任务启用停用传递参数用

    @Transient
    private transient Boolean statuSwitch1; //立刻执行停止传递参数用

	@Transient
	private transient  Integer vol; //设置音量
}
